package com.example.zxslzw2014_8_11;

import com.example.zxslzw2014_8_11.controller.UserController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

@Controller
public class UserController1 {
    @Resource(name = "userInfo1")
    @Autowired
    private  UserInfo userInfo;
    public void doController() {
        System.out.println(userInfo.toString());
        System.out.println("hi, UserController");
    }
}

//    public void setU1(UserInfo userInfo){
//        this.userInfo = userInfo;
//    }